package cn.ruituo.adv3;

import java.util.Calendar;

public class CalTest32 {
    public static void main(String[] args) {
        Calendar c=Calendar.getInstance();
        //c.set(Calendar.MONTH,100);
        //System.out.println(c.getTime());
       // c.add(Calendar.DAY_OF_MONTH,34);
        //c.roll(Calendar.DAY_OF_MONTH,34);
        System.out.println(c.getTime());
        int days=c.getActualMaximum(Calendar.DAY_OF_YEAR);
        System.out.println("days="+days);
        //完整周
        int weeks=c.getActualMaximum(Calendar.WEEK_OF_YEAR);
        System.out.println("weeks="+weeks);

    }
}
